home *** CD-ROM | disk | FTP | other *** search
- # Internet Access (Australia) PPP login script
- # Copyright 1995 Quarterdeck Corporation
- # 5-11-95 Earl White
-
- STRING username
- STRING password
-
- TRACE OFF
-
- SetTimeout 90 # reset maximum script timeout
-
- # Get username from access method
- CfgGetValue "Username" username
-
- IF result = 0 THEN
- GetInput "Enter your username:" username
- IF result = 0 THEN
- PRINT "Warning, no username entered."
- ELSE
- PRINT "Username set to:"; username
- ENDIF
- ENDIF
-
- CfgGetValue "Password" password
-
- IF result = 0 THEN
- GetPassword "Enter your password:" password
- IF result = 0 THEN
- PRINT "Warning, no password entered."
- ELSE
- PRINT "Password set."
- ENDIF
- ENDIF
-
- CommWaitFor "Username:" # wait for username
- CommSend username # send user name
- CommSend "%r" # send carriage return
-
- CommWaitFor "Password:" # wait for password prompt
- CommSend password # send password
- CommSend "%r" # send carriage return
-
- CommWaitFor ">"
- CommSend "ppp"
- CommSend "%r"
-
- END #success if we got this far
-
-